package com.website.system.service.impl;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.website.system.dao.DrugsMapper;
import com.website.system.model.Yaopin;
import com.website.system.service.DrugsService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class DrugsServiceImpl extends ServiceImpl<DrugsMapper, Yaopin> implements DrugsService {
    @Resource
    DrugsMapper mapper;

    @Override
    public List<Yaopin> getRankingFour(Integer rowNumber) {
        return mapper.getRankingFour(rowNumber);
    }

    public int addDrugs(Yaopin yaopin){
        return mapper.addDrugs(yaopin);
}

    public int updateDrugs(Integer id){
        return  mapper.updateDrugs(id);
}

}

